package com.mmall.common;

/**
 * Created by root on 3/18/18.
 */
public enum ResponseCode {

    SUCCESS(0,"success"),
    ERROR(1,"error"),
    NEED_LOGIN(10,"need_login"),
    ILLEGAL_ARGUMENT(2,"illegal_argument");

    private int code;
    private String desc;
    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
